<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="author" content="Paweł 'kilab' Balicki - kilab.pl" />
        <title><?php echo $title; ?></title>
        <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_ADMIN_PATH; ?>css/style.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_ADMIN_PATH; ?>css/navi.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_ADMIN_PATH; ?>js/jcrop/css/jquery.Jcrop.css" media="screen" />
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/category.js"></script>
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/product.js"></script>
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/tinymce/tinymce.min.js"></script>
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/jquery.min.js"></script>
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/jcrop/js/jquery.Jcrop.js"></script>
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/jquery.wallform.js"></script>
        
        <script type="text/javascript">
            jQuery(document).ready(function($) {
                $(".box .h_title").not(this).next("ul").hide("normal");
                $(".box .h_title").not(this).next("#home").show("normal");
                $(".box").children(".h_title").click(function() {
                    $(this).next("ul").slideToggle();
                });
            });
        </script>

        <!--TinyMCE-->
        <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_ADMIN_PATH; ?>js/tinymce/skins/lightgray/skin.min.css" media="all" />
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/tinymce/tinymce.min.js"></script>
        <script>
//            Do not foget to config some paths in /js/tinymce/plugins/filemanager/config/config.php
            tinymce.init({
                selector: "textarea.tinyMCE",
                theme: "modern",
                external_filemanager_path: '<?php echo TEMPLATE_ADMIN_PATH; ?>js/tinymce/plugins/filemanager/',
                //width: 500,
                height: 300,
                relative_urls: false,
                remove_script_host: false,
                subfolder: "",
                plugins: [
                    "advlist autolink link image lists charmap print preview hr anchor pagebreak",
                    "searchreplace wordcount visualblocks visualchars code insertdatetime media nonbreaking",
                    "table contextmenu directionality emoticons paste textcolor filemanager fullscreen"
                ],
                image_advtab: true,
                toolbar: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect forecolor backcolor | link unlink anchor | image media | print preview code fullscreen"
            });
        </script>
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/tinymce/plugins/filemanager/plugin.min.js"></script>
        <!--End TinyMCE-->
    </head>
    <body>

        <?php echo form_open(); ?>
        <input type="hidden" value="<?php echo base_url(); ?>" id="base_url" />
        <?php echo form_close(); ?>
        <div class="wrap">
            <div id="header">
                <div id="top">
                    <div class="left" >
                        <!--<h2>Pichnil</h2>-->
                    </div>
                    <div class="right">
                        <div class="align-right">
                            <p>Welcome: <strong><?php echo $this->session->userdata('userName'); ?></strong> | <?php echo anchor('authentication/logout', 'Logout'); ?></p>
                        </div>
                    </div>
                </div>
                <div id="nav">
                    <ul>
                        <li class="upp"><?php echo anchor('page/home', 'Home'); ?></li>
                        <li class="upp"><?php echo anchor('product/product', 'Products'); ?></li>
                        <li class="upp"><?php echo anchor('page/export', 'Exports'); ?></li>
                        <li class="upp"><?php echo anchor('activity/activity', 'Acitivities'); ?>
                            <ul>
                                <li>&#8250; <?php echo anchor('activity/activity/rice_export', 'Rice Export Activities'); ?></li>
                                <li>&#8250; <?php echo anchor('activity/activity/exhibition', 'Exhibition Activities'); ?></li>
                            </ul>
                        </li>
                        <li class="upp"><?php echo anchor('page/contact', 'Contact Us'); ?></li>
                        <li class="upp"><?php echo anchor('page/about', 'About Us'); ?>
                            <ul>
                                <li>&#8250; <?php echo anchor('page/about/legality', 'Company Legality'); ?></li>
                                <li>&#8250; <?php echo anchor('page/about/philosophy', 'Our Company Philosophies'); ?></li>
                                <li>&#8250; <?php echo anchor('page/about/association', 'Our Association Mill House'); ?></li>
                                <li>&#8250; <?php echo anchor('page/about/management_profile', 'Management Profile'); ?></li>
                            </ul>
                        </li>
                        <li class="upp"><?php echo anchor('slideshow/slideshow', 'Slideshow'); ?></li>
                        <li class="upp"><?php echo anchor('user/user/profile', 'Profile'); ?></li>
                    </ul>
                </div>
            </div>

            <div id="content">
                <div id="main">
                    <div class="full_w">
                        <div class="h_title"><?php echo $action; ?></div>
                        <?php $this->load->view($page); ?>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <div id="footer">
                <div class="left">
                    <!--<p>Power by: <a href="#">Dany.CHUN</a> | For: <a href="">domain.com</a></p>-->
                </div>
                <div class="right">
                    <!--<p><a href="">Example link 1</a> | <a href="">Example link 2</a></p>-->
                </div>
            </div>
        </div>
        <script type="text/javascript" src="<?php echo TEMPLATE_ADMIN_PATH; ?>js/translation.js"></script>
    </body>
</html>
